package com.longsunhd.yum.buffalo.bean;


import java.io.Serializable;

/**
 * 作者：黄宣淇
 * 时间：2021/5/6 0006
 * 如何代码没有备注，一个月后，只有你和上帝知道--鲁迅
 */

public class LoginBean implements Serializable {

    /**
     * code : 200
     * data : {"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvd2x3YWRtaW4ubG9uZ3N1bmhkLmNvbVwvYXBpXC9mYXJtZXJcL2xvZ2luIiwiaWF0IjoxNjIwMjkxMzU3LCJleHAiOjE2MjI4ODMzNTcsIm5iZiI6MTYyMDI5MTM1NywianRpIjoiNmg2c2tTVDM1WDVFbWFybyIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyIsInJvbGUiOiJmYXJtZXIifQ.M1g-8qDdxwXyKXRUUOz6VqoqrsD7At4nmtIbuDMORH4","token_type":"bearer","expires_in":2592000,"role":"farmer"}
     * msg :
     */

    private int code;
    private DataBean data;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public static class DataBean   implements Serializable {
        private static final long serialVersionUID = 1L;
        /**
         * access_token : eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczpcL1wvd2x3YWRtaW4ubG9uZ3N1bmhkLmNvbVwvYXBpXC9mYXJtZXJcL2xvZ2luIiwiaWF0IjoxNjIwMjkxMzU3LCJleHAiOjE2MjI4ODMzNTcsIm5iZiI6MTYyMDI5MTM1NywianRpIjoiNmg2c2tTVDM1WDVFbWFybyIsInN1YiI6MSwicHJ2IjoiMjNiZDVjODk0OWY2MDBhZGIzOWU3MDFjNDAwODcyZGI3YTU5NzZmNyIsInJvbGUiOiJmYXJtZXIifQ.M1g-8qDdxwXyKXRUUOz6VqoqrsD7At4nmtIbuDMORH4
         * token_type : bearer
         * expires_in : 2592000
         * role : farmer
         */

        private String access_token;
        private String token_type;
        private int expires_in;
        private String role;
        private String name="";
        private String password;

        public void setPassword(String password) {
            this.password = password;
        }

        public String getPassword() {
            return password;
        }

        public String getAccess_token() {
            return access_token;
        }

        public void setAccess_token(String access_token) {
            this.access_token = access_token;
        }

        public String getToken_type() {
            return token_type;
        }

        public void setToken_type(String token_type) {
            this.token_type = token_type;
        }

        public int getExpires_in() {
            return expires_in;
        }

        public void setExpires_in(int expires_in) {
            this.expires_in = expires_in;
        }

        public String getRole() {
            return role;
        }

        public void setRole(String role) {
            this.role = role;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getName() {
            return name;
        }
    }
}
